require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'

#Async create options
#options = CreateOptions.new(nil,nil,nil,nil,nil,nil,nil,nil,'Asynchronous')
options = nil

listObjs = []
listType = 'Public'
5.times do |i|
  listName = "API-TestList-#{i}"
  listDesc = listName + 'Generated through the API'
  listObjs.push(List.new(nil,nil,nil,nil,nil,nil,nil,listName,nil,nil,listName,nil,listType,listDesc))
end
apiObj = listObjs

resp = $driver.create(CreateRequest.new(options,[*apiObj]))